package shopping.feign.call.configuration;

import feign.RequestInterceptor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import shopping.feign.call.interceptor.ShoppingAuthRequestInterceptor;

@Configuration
public class FeignConfiguration {
  @Value("${feign.custom.tk}")
  private String tk;
  
  @Bean
  public RequestInterceptor shoppingAuthRequestInterceptor() {
    return new ShoppingAuthRequestInterceptor(tk);
  }
}
